package com.power.sifa.base.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.Repository;
import org.springframework.data.repository.query.Param;
import com.power.sifa.base.model.Mq_logerr;

import javax.transaction.Transactional;
import java.io.Serializable;
import java.util.List;

/**
 * 队列消费错误记录 持久层(hibernate)
 */

public interface Mq_logerrDao extends JpaRepository<Mq_logerr, Serializable>, JpaSpecificationExecutor<Mq_logerr>, Repository<Mq_logerr, Serializable>, Mq_logerrDaoCustom<Mq_logerr, Serializable> {

   @Modifying
   @Transactional
   @Query("delete  from Mq_logerr s where  s.id in (:ids) ")
   void removeByIds(@Param("ids") List<String> ids);
}
